import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '开票id',
    align: "center", resizable: true,
    dataIndex: 'invoiceApplyId_dictText'
  },
  {
    title: '收款记录',
    align: "center", resizable: true,
    dataIndex: 'paymentRecordId_dictText'
  },
  {
    title: '开票总金额',
    align: "center", resizable: true,
    dataIndex: 'amount'
  },
  {
    title: '开票拆分金额',
    align: "center", resizable: true,
    dataIndex: 'splitAmount'
  },
  {
    title: '项目id',
    align: "center", resizable: true,
    dataIndex: 'projectId_dictText'
  },
  {
    title: '子项目id',
    align: "center", resizable: true,
    dataIndex: 'subProjectId_dictText'
  },
  {
    title: '总包id',
    align: "center", resizable: true,
    dataIndex: 'companyInfoId_dictText'
  },
];

// 高级查询数据
export const superQuerySchema = {
  invoiceApplyId: {title: '开票id',order: 0,view: 'list', type: 'string',dictTable: "c_invoice_apply", dictCode: 'id', dictText: 'invoice_number',},
  paymentRecordId: {title: '收款记录',order: 1,view: 'list', type: 'string',dictTable: "c_payment_record", dictCode: 'id', dictText: 'payment_title',},
  amount: {title: '开票总金额',order: 2,view: 'number', type: 'number',},
  splitAmount: {title: '开票拆分金额',order: 3,view: 'number', type: 'number',},
  projectId: {title: '项目id',order: 4,view: 'list', type: 'string',dictTable: "c_project_application", dictCode: 'id', dictText: 'project_name',},
  subProjectId: {title: '子项目id',order: 5,view: 'list', type: 'string',dictTable: "c_sub_project", dictCode: 'id', dictText: 'sub_project_name',},
  companyInfoId: {title: '总包id',order: 6,view: 'list', type: 'string',dictTable: "c_company_info", dictCode: 'id', dictText: 'company_name',},
};
